package com;

import com.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author xiangjun.deng
 * email 17670934918dxj@sina.com
 * @date 2021/8/12 9:45
 * @desc
 */
@Transactional
public class App {
    public static void main(String[] args) {
        ApplicationContext act = new ClassPathXmlApplicationContext("applicationContext.xml");

        AccountService accountService = (AccountService) act.getBean("accountService");
        accountService.transfer("zhangsan","zhaoliu",200d);
    }
}
